package com.tianyi.sfzy1.mapper;

import com.tianyi.sfzy1.domain.Notification;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【notification(通知表)】的数据库操作Mapper
* @createDate 2025-01-02 11:46:53
* @Entity com.tianyi.sfzy1.domain.Notification
*/
public interface NotificationMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Notification record);

    int insertSelective(Notification record);

    Notification selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Notification record);

    int updateByPrimaryKey(Notification record);

//    插入通知
    int insertNotification(Notification notification);

//根据会员id查询通知
    List<Notification> findNotificationByMemberId(int memberId);
}
